<?php 
class nbc{
	function __construct(){
		echo "yes";
	}
	
	function get(){
		echo "go";
		return $this;
	}
	
	function gets(){
		echo "gone";
		return $this;
	}	
	function __destruct(){
		echo "bye";
	}
}
$nbc = new nbc();
$nbc->get()->gets();
?>